
import Antd from 'ant-design-vue';
import { message } from 'ant-design-vue';

import "ant-design-vue/dist/antd.less";
import * as Icons from "@ant-design/icons-vue";

export function setupAntd(app) {

  const icons = Icons;
  for (const i in icons) {
    app.component(i, icons[i]);
  }

  app.use(Antd)
  // 添加到全局
  app.config.globalProperties.$antIcons = Icons;
  app.config.globalProperties.$message = message;
}